package io.renren.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.dao.SubscribeDao;
import io.renren.entity.SubscribeEntity;
import io.renren.service.SubscribeService;
import io.renren.utils.Query;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Map;

/**
 * describe:
 * create @ kylin  2019/03/03
 */
@Service("subscribeService")
public class SubscribeServiceImpl extends ServiceImpl<SubscribeDao, SubscribeEntity> implements SubscribeService {


    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        return null;
    }

    @Override
    public ArrayList<SubscribeEntity> getAllRoom() throws Exception {
        return this.baseMapper.getAllRoom();
    }

    @Override
    public ArrayList<SubscribeEntity> getAllDepartment() throws Exception {
        return this.baseMapper.getAllDepartment();
    }

    @Override
    public Integer insertOneSubsc(SubscribeEntity subscribeEntity) throws Exception {
        return this.baseMapper.insertOneSubsc(subscribeEntity);
    }

    @Override
    public Integer insertOneSubsExp(SubscribeEntity subscribeEntity) throws Exception {
        return this.baseMapper.insertOneSubsExp(subscribeEntity);
    }
}
